package com.ruoyi.mapper;

import com.ruoyi.entity.Classes;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface CourseMapper {



    @Select("select * from classes")
    List<Classes> courseList();

    @Insert("insert into classes set classes_name=#{classesName},classes_video=#{classesVideo}")
    void courseAdd(Classes classes);

    @Update("update classes set classes_name=#{classesName},classes_video=#{classesVideo} where classes_id=#{classesId}")
    void courseUpdate(Classes classes);

    @Delete("delete from classes where classes_id=#{id}")
    void courseDel(Integer id);
}
